package com.mach.platform.domain.mach;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Administrator
 * @Description: 指标记录： 计划产量，实际产量，等录入数据
 * @Package: com.mach.platform.domain.mach
 * @time 2018/6/5 0005 15:06
 */
@Data
@Entity
@Table(name = "quota_record")
@ExcelTarget("quotaRecord")
public class QuotaRecord implements Serializable {

	private static final long serialVersionUID = -4204126850134637723L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private              Long id;

	/**
	 * 年份
	 */
	@Excel(name = "年份", orderNum = "1", width = 25)
	@Column(name = "fyear")
	private Integer fyear;

	/**
	 * 月份
	 */
	@Excel(name = "月份", orderNum = "2", width = 25)
	@Column(name = "fmonth")
	private Integer fmonth;


	/**
	 * 月份
	 */
	@Excel(name = "日份", orderNum = "3", width = 25)
	@Column(name = "fday")
	private Integer fday;

	/**
	 * 工厂名称
	 */
	@Excel(name = "工厂", orderNum = "4", width = 25)
	private String factory;

	/**
	 * 车间
	 */
	@Excel(name = "车间", orderNum = "5", width = 25)
	private String workshop;

	/**
	 * 能源种类 水电煤气暖
	 */
	@Excel(name = "种类", orderNum = "6", width = 25)
	private String etype;

	/**
	 * 能源类型 计划用量，产量
	 */
	@Excel(name = "数值类型", orderNum = "7", width = 25)
	private String ntype;

	/**
	 * 数量
	 */
	@Excel(name = "数值", orderNum = "8", width = 25)
	private Double num;

	/**
	 * 录入人
	 */
	@Column(length = 125)
	private String createUser;

	/**
	 * 录入时间
	 */
	@Column(length = 125)
	private String createTime;

	/**
	 * 录入人
	 */
	@Column(length = 125)
	private String updUser;

	/**
	 * 录入时间
	 */
	@Column(length = 125)
	private String updTime;

}
